import React from 'react'

const LeaveRoomButton = () => {
    const leaveRoom = () =>{
        const siteUrl = window.location.origin;
        window.location.href = siteUrl;
    }
  return (
    <div className='video_button_container'>
        <button className='video_button_end'
        onClick={leaveRoom}>离开房间</button>
    </div>
  )
}

export default LeaveRoomButton